package com.duowei.diandan.bean;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import com.duowei.diandan.BR;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * 用户卡信息(云会员) 两张表 ims_card_members、 ims_fans
 */
public class UserCardInfo extends BaseObservable implements Serializable {
    @SerializedName("from_user")
    private String fromUser;
    private String cardsn;
    private float credit1;
    private float credit2;
    @SerializedName("realname")
    private String realName;
    private String mobile;
    private String status;
    @SerializedName("cardgrade")
    private String cardGrade;
    private String active;
    private String occupation;
    private int uid;

    public UserCardInfo() {
    }

    public String getFromUser() {
        return fromUser;
    }

    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    @Bindable
    public String getCardsn() {
        return cardsn;
    }

    public void setCardsn(String cardsn) {
        this.cardsn = cardsn;
        notifyPropertyChanged(BR.cardsn);
    }

    public float getCredit1() {
        return credit1;
    }

    public void setCredit1(float credit1) {
        this.credit1 = credit1;
    }

    public float getCredit2() {
        return credit2;
    }

    public void setCredit2(float credit2) {
        this.credit2 = credit2;
    }

    @Bindable
    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
        notifyPropertyChanged(BR.realName);
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCardGrade() {
        return cardGrade;
    }

    public void setCardGrade(String cardGrade) {
        this.cardGrade = cardGrade;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }
}
